package com.yoda.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.dto.AdvImgDto;
import com.yoda.dto.AdvImgPageQuery;
import com.yoda.entity.YddAdvimg;
import com.yoda.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
public interface IYddAdvimgService extends IService<YddAdvimg> {

    /**
     * 广告图详情
     * @param id
     * @return
     */
    public Result selectById(String id);

    /**
     * 广告图列表-分页
     * @param adv
     * @return
     */
    public Result pageQuery(AdvImgPageQuery adv);

    /**
     * 广告图修改
     * @param dto
     * @return
     */
    public Result updateAdvImage(AdvImgDto dto);

    /**
     *根据id进行广告图删除
     * @param id
     * @return
     */
    public Result deleteById(String id);

    /**
     * 广告图添加
     * @param advimg
     * @return
     */
    @PostMapping("/add")
    public Result addAdvImg(YddAdvimg advimg);

}
